import React from 'react';
import { render } from 'react-dom';
import { ConnectedRouter } from 'connected-react-router';
import history from './store/history';
import Login from './components/login';
import { Switch, Route } from 'react-router-dom';
import Home from './components/home';
//reset css 
import './assets/css/reset.css';
import "./assets/css/common.css"
// antd css
import 'antd/dist/antd.css';

// store
import store from './store';
import { Provider } from 'react-redux';


render(
    <Provider store={store}>
        <ConnectedRouter history={history}>
            <Switch>
                <Route path='/' exact component={Home}></Route>
                <Route path='/login' component={Login}></Route>
            </Switch>
        </ConnectedRouter>
    </Provider>
    , document.getElementById('root'));